package _spring_test._CircularReference3_2;

import _spring_test._CircularReference3.ClassB333;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;

/**
 * @Author: huangya
 * @Date: 2020/09/22
 * @Description:
 */
@Component
public class ClassBController {

    @Autowired
    ClassB333 classB333;

    public String test(){
        return classB333.bbb();
    }

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("CircularReference3/application-circular-reference3.xml");
        ClassBController classBController = (ClassBController)ac.getBean("classBController");
        classBController.test();

    }
}
